<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/restrito/layout/template.xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core">
    
    <ui:define name="content">
        
        <p>
            
            <ui:insert name="content">
            
            </ui:insert>
        </p>
   
    
        
        
              
        <h:form>
            <rich:panel> 
                <h:outputText style="font-size:medium; color: black " value="Mensagem"/>
                <h:inputText style="font-size: small; color: black; background-color: bisque ; width: 200px ; height: 100px;" value="#{mensagemController.mensagem.texto}" required="true" requiredMessage="Mensagem é Obrigatória"/>
                <br/>
                <h:outputText value="Status"/>
                <h:selectOneMenu value="#{mensagemController.mensagem.status}">
                    <f:selectItem itemValue="Recebida" itemLabel="Recebida"/>
                    <f:selectItem itemValue="Enviada" itemLabel="Enviada"/>
                </h:selectOneMenu>
                <br/>
           
            
                <h:commandButton value="Enviar" action="#{mensagemController.inserirMensagem()}"/>
                <br/>
            
            </rich:panel>
            
            
            
            
        </h:form>
        
        <br/>

            <h:messages errorStyle="color: red" infoStyle="color: black" layout="table" style="font-size: 13px"/>
   
  </ui:define>
</ui:composition>      

